package com.livestocksolutions.ui;

import com.livestocksolutions.LivestockSolutions;
import com.livestocksolutions.Chemical;
import com.livestocksolutions.UsedChemical;
/**
 * Display details relating to any Chemical, or a particular Chemical.
 * @author Ken DeVries
 * @author Adam Parr
 * 
 * @.modified 06 March 2013
 */
public class ChemicalPanel extends ChemicinePanel<Chemical,UsedChemical> {
	private static final long serialVersionUID = 1L;
	
	/**
	 * Constructor.
	 */
	public ChemicalPanel(){
		super("Chemical");
	}

	@Override
	protected Chemical[] getList(){
		return LivestockSolutions.getOnlyChemicals();
	}
	
	@Override
	protected Chemical newItem(){
		return new Chemical();
	}
}
